/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.istia.gesstages.dao;

import fr.istia.gesstages.jpa.Offer;
import fr.istia.gesstages.jpa.User;
import java.util.List;

/**
 * @date 22/11/2011
 * @author Cédric Moreau
 */
public interface IDaoOffer {
    
    public Offer create(Offer offer);
    public Offer update(Offer offer);
    public void delete(Offer offer);
    public Offer find(int id);
    public List<Offer> findAll();
    public List<Offer> findArchived(String year);
    public List<Offer> findCurrent();
    public List<Offer> findNotAppliedBy(User student);
    public void archiveAll();
    public void deleteAll();
}
